package com.microptech.servicebusiness.service;

import com.microptech.servicebusiness.hystric.OrderServiceHystric;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "order-service", fallback = OrderServiceHystric.class)
public interface OrderService {

    @RequestMapping(value = "/order/create", method = RequestMethod.GET)
    public String create(@RequestParam("uid") int uid, @RequestParam("goodsId") int goodsId,@RequestParam("amount") int amount);
}
